package cn.jsu.oj.dispatchServer.pojo;


/**
 * @author: suixuexue
 * @date: 2020/11/11 11:06
 * describe:
 *  状态信息包装类
 */
public class StatusCmdResultPack extends AbstractPack {


    private String ip;//ip来源地


    private short port;


    private String cpuUserRate;//cpu使用率


    private String netWorkStatusIn;//网络状态


    private String netWorkStatusOut;//网络状态


    private String Memory;//最大内存


    private String Disk;//最大磁盘MB

    public StatusCmdResultPack() {
    }

    public StatusCmdResultPack(String ip, String cpuUserRate, String netWorkStatusIn, String netWorkStatusOut, String memory, String disk) {
        this.ip = ip;
        this.cpuUserRate = cpuUserRate;
        this.netWorkStatusIn = netWorkStatusIn;
        this.netWorkStatusOut = netWorkStatusOut;
        Memory = memory;
        Disk = disk;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getCpuUserRate() {
        return cpuUserRate;
    }

    public void setCpuUserRate(String cpuUserRate) {
        this.cpuUserRate = cpuUserRate;
    }

    public String getNetWorkStatusIn() {
        return netWorkStatusIn;
    }

    public void setNetWorkStatusIn(String netWorkStatusIn) {
        this.netWorkStatusIn = netWorkStatusIn;
    }

    public String getNetWorkStatusOut() {
        return netWorkStatusOut;
    }

    public void setNetWorkStatusOut(String netWorkStatusOut) {
        this.netWorkStatusOut = netWorkStatusOut;
    }

    public String getMemory() {
        return Memory;
    }

    public void setMemory(String memory) {
        Memory = memory;
    }

    public String getDisk() {
        return Disk;
    }

    public void setDisk(String disk) {
        Disk = disk;
    }

    public short getPort() {
        return port;
    }

    public void setPort(short port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "StatusCmdResultPack{" +
                "ip='" + ip + '\'' +
                ", port=" + port +
                ", cpuUserRate='" + cpuUserRate + '\'' +
                ", netWorkStatusIn='" + netWorkStatusIn + '\'' +
                ", netWorkStatusOut='" + netWorkStatusOut + '\'' +
                ", Memory='" + Memory + '\'' +
                ", Disk='" + Disk + '\'' +
                '}';
    }
}
